<!DOCTYPE html>
<html lang="zh-CN">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>Document</title>
</head>
<body>
  <script src="../dev/vendors/vue.js"></script>
  <div id="app">
    <p>Message is: {{ message }}</p>
    <input v-on:input="input($event)" placeholder="edit me">
  </div>
  <script>
    var vm = new Vue({
      el: '#app',
      data:{
        message: null
      },
      methods: {
        input: function(e) {
          this.message = e.target.value
        }
      }
    })
  </script>
</body>
</html>